#pragma once

#include "bass.h"
#include <stdlib.h>
enum STREAM_TYPE {
	OTHERFILES,
	MOD
};

typedef struct tagStreamNode {
	STREAM_TYPE	idType ;
	char*		sID;
	DWORD		hStream;
} STREAM_NODE, * PSTREAM_NODE;

class Sound 
{
private:
	char * _sizeFile;
	HWND _hwnd;
	int _device;
	DWORD _freg;
	DWORD _flag;

	PSTREAM_NODE _streams;
	int _streamCount;
public:
	Sound();
	~Sound();
	int Init(HWND);
	int AddFile(STREAM_TYPE type, const char* sID, const char* szFile, DWORD flags);
	void ReamoveFile(char *id);
	void RemoveAll();
	int Play(char *id, bool reStart);
	void  Pause(char *id);
	void Stop(char *id);
	void PauseAll();
	void StopAll();
	void ResumeAll();
	void SetGlobalVolume(int vol);
	void SetItemVolume(char *id, int vol);

};